<template>
  <!--
      	作者：luoyiming
      	时间：2020-06-01
      	描述：插件中心-分销-提现申请-弹窗
      -->
  <el-dialog title="不通过原因" width="600px" :visible.sync="dialogVisible" @close="dialogFormVisible"
             :close-on-click-modal="false"
             :close-on-press-escape="false">
    <p>{{ reject_reason }}</p>
    <div slot="footer" class="dialog-footer">
      <el-button type="primary" @click="dialogFormVisible">确 定</el-button>
    </div>
  </el-dialog>
</template>

<script>

export default {
  data() {
    return {
      status: '',
      audit: '',
      reject_reason: '',
      /*左边长度*/
      formLabelWidth: '120px',
      /*是否显示*/
      dialogVisible: false
    };
  },
  props: ['open', 'form'],
  watch: {
    open: function (n, o) {
      this.dialogVisible = this.open;
      if (n != o && n) {
        this.status = this.form.audit;
        this.audit = this.form.audit;
        if (this.audit == 2) {
          this.reject_reason = this.form.reject_reason;
        }
      }
    }
  },
  created() {

  },
  methods: {
    /*关闭弹窗*/
    dialogFormVisible(e) {
      this.$emit('close', e || false);
    }
  }
};
</script>

<style></style>
